package com.itheima.order.feign;

import com.itheima.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "order")
@RequestMapping("/orderDemo")
public interface OrderFeignDemo {


    @GetMapping("getToken")
    String getToken();

    @PostMapping("addOrder")
    String addOrder (@RequestBody Order order);
}
